home *** CD-ROM | disk | FTP | other *** search
/ ASP Monthly 1996 June / The Official ASP CD-ROM (June 1996).iso / bbsvend / readme.dat < prev    next >
Text File  |  1996-01-09  |  6KB  |  141 lines

  1. ~TL README Utility - (C) 1995-96 FormGen Inc.  ~BT 95
  2. @C@B Introduction
  3.  
  4. The @EFormGen README Utility @Eis a very small and fast README file viewer
  5. that supports a number of user configurable text formatting and display
  6. options to jazz up your README files.
  7.  
  8. All color values and attributes used by README are controlled from within the
  9. readme text file itself, no external configuration file is required.  There
  10. are two basic sets of options, those that control color attributes and the
  11. title that appears on the top line of your screen, and those that affect the
  12. display of various lines of text.
  13.  
  14. By default, README loads a formatted text file named README.DAT.  If not
  15. found, it searches for a README.TXT file.
  16.  
  17. @C@BTitle and Colors
  18.  
  19.  
  20. The title and color values can only appear on the top line of the README.DAT
  21. file.  The basic format is a tilde character (~) plus a two character code.
  22. These codes are not case sensitive.  When README scans the file, it extracts
  23. and processes these codes on the top line, but never actually displays the
  24. line itself.  The following options are available :
  25.  
  26.     @E~TL@E    Title on the top line of the screen.
  27.  
  28.     @E~TN@E    Color of the top and bottom lines.
  29.  
  30.     @E~TH@E    Color of highlighted text on the top line.
  31.  
  32.     @E~DV@E    Color of the divider line at the top and bottom of the screen.
  33.  
  34.     @E~NT@E    Normal text color.
  35.  
  36.     @E~BT@E    Bold text color.
  37.  
  38.     @E~ET@E    Emphasized text color.
  39.  
  40.     @E~FK@E    Function key color.
  41.  
  42. All colors are entered as a standard combined attribute value, for example 23
  43. for grey text on a blue background etc.
  44.  
  45. To create, for example, a top line for a program named 'DingBat Solitaire',
  46. with a header and footer color of white on red, a title highlight of bright
  47. white on red, function key colors of bright yellow on red, and a bold text
  48. color of bright red on a blue background, the top line would read :
  49.  
  50. @C@E ~TL DingBat Solitaire ~TN71 ~TH79 ~FK78 ~BT28
  51.  
  52. In this example, we have separated the various switches and settings with
  53. spaces for clarity, although this not required by README.  If you want to see
  54. what this example looks like, just edit this README.DAT file, copy this
  55. sample line to the top line of the file, and then run README.  A somewhat
  56. tasteless example, but one that gets the points across !!
  57.  
  58. Be aware that if the utility is run on a monochrome system, any color values
  59. entered on the top line will be ignored and README will use its own defaults.
  60. Also, any colors that are not set on the top line will assume README's
  61. default values.
  62.  
  63.  
  64. @C@BText Processing
  65.  
  66. There are two types of text processing commands, text formatting and color
  67. attributes.  The various text processing commands should appear at the
  68. beginning of a line of text.  This is not manditory, but it does help the
  69. legibilty of the text file.
  70.  
  71. The color attribute commands can appear at the begining of a line, or used as
  72. markers to highlight a word or phrase.  The only rule is that only one color
  73. attribute can be used on a single line.  If you are highlighting a phrase,
  74. only one pair of color attributes can appear on a single line.
  75.  
  76. The basic format of these options is an (@) symbol plus a one character
  77. code.  Once again, these codes are not case sensitive.
  78.  
  79.     @E@ L@E     Left Justify line.
  80.  
  81.     @E@ R@E     Right Justify Line.
  82.  
  83.     @E@ C@E     Center Line.
  84.  
  85.     @E@ B@E     Paint line or phrase in bold color.
  86.  
  87.     @E@ E@E     Paint line or phrase in emphasized color.
  88.  
  89. In the above listing, the space between the (@) symbol and the letter key is
  90. there only to prevent wild justification of the above lines.  If you
  91. inadvertently place both an @ E and a @ B code on the same line, then the
  92. first attribute will be used for the line, and the others will appear within
  93. the displayed text.
  94.  
  95. When formatting text for use with README, a line should not contain more than
  96. 78 characters of text, excluding the embedded codes.  README automatically
  97. removes its own codes and then truncates the balance to 78 characters.
  98.  
  99. When assigning color attributes, a single attribute at the begining of a line
  100. tells README to paint the entire line in the appropriate color.  A pair of
  101. matching color attributes tells README to paint only the text delimited by
  102. the markers.
  103.  
  104.  
  105. @C@BText Output
  106.  
  107. You may wish to enable your customers to print out the README.TXT file
  108. supplied with your software.  If they printed the supplied file, it would of
  109. course include all of the formatting and color codes.  The README utility
  110. therefore provides a Text Output function assigned to the [Enter] key.
  111.  
  112. When a user presses [Enter], the contents of the text buffer are written out
  113. to an ASCII text file called README.OUT, in the same format as displayed on
  114. their screen.  The only difference is that no attributes are assigned to
  115. allow their printer to print bold text etc..  A beep is sounded to confirm
  116. the output to the text file.
  117.  
  118. An error message will appear on the bottom line of the screen if there is no
  119. room on the disk for the new file, or the media is unwritable (for example if
  120. README is run on a CD-ROM).
  121.  
  122.  
  123. @C@B Odds and Sods
  124.  
  125. The README utility display a page number in the upper right corner of the top
  126. line.  This is actually a screen page number intended to provide the user
  127. with a rough idea of where they are in a potentially long text file.
  128.  
  129. If a file name is not added to the command line when you start README, the
  130. utility first searches for a README.DAT file, the default formatted text
  131. file.  If README.DAT does not exist in the current directory, then README
  132. goes looking for an alternate file named README.TXT.  If this file is not
  133. found, then a message saying 'File Not Found' will appear and you will return
  134. to the DOS prompt.  The README.DAT file provides a way for you to supply a
  135. formatted text file for your application that a user would not likely try to
  136. load into an editor or viewer of some sort.
  137.  
  138. If README has any problem opening the README.DAT or README.TXT files, or
  139. creating the README.OUT file, then it will immediately quit back to DOS.
  140.  
  141.